﻿using System;
using visinia.SmartEngine.Modules;
using System.Collections;

public partial class visiniaNewsPortal_NewsnLinks_Settings : WebSettingsModule
{
    protected void Page_Load(object sender, EventArgs e)
    {
        bool temp = false;
        bool.TryParse((string)Settings["HideImage"], out temp);
        CheckBoxHideImage.Checked = temp;
        TextBoxSummaryCount.Value = (string)Settings["SummaryCharCount"];                    
    }
        
    public override void SaveSettings(Hashtable settings)
    {
        DATA_FILTERS.SaveFilterData(settings);
        if((string)settings["CheckBoxHideImage"] == "on")
            AddSetting("HideImage", "true");
        else
            AddSetting("HideImage", "false");
        AddSetting("SummaryCharCount", (string)settings["TextBoxSummaryCount"]);         
    }
}
